package com.mysoft.gfyx.clue.controller.option;

import com.mysoft.framework.modeling.OptionDataController;
import com.mysoft.framework.modeling.dto.Filter;
import com.mysoft.framework.modeling.dto.OptionItem;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.clue.service.AreaOptionService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Tag(name = "地区备选项-省份和城市-API")
@PubService(value = "/areaOptionWithProfitAndPermission", prefix = RequestPrefix.API)
public class AreaOptionWithProfitAndPermissionDataController extends OptionDataController {

    @Autowired
    AreaOptionService areaOptionService;

    @Override
    protected List<OptionItem> load(List<Filter> filters, Map<String, String> urlParams) {
        return areaOptionService.getProfitWithPermissionAreaData();
    }
}
